﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/UserHome.Master" CodeBehind="Profile.aspx.vb" Inherits="LEAD.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
    <tr>
    <td>
    <form id="form1" runat="server">
     
<tr><td>

    <tr>
        <td>
            <table style="width: 100%">
                <tr>
                    <td style="width: 231px">
                        <table style="width: 71%">
                            <tr>
                                <td>
                                    <asp:Image ID="Image1" runat="server" Height="133px" Width="155px" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lbl_UserName" runat="server" Font-Bold="True" Font-Names="Calibri" 
                                        ForeColor="#CC0000" Text="Label" Font-Size="Larger"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lbl_lastlogin_text" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Last Login:"></asp:Label>
                                    <asp:Label ID="lbl_LastLogin" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lbl_DateofJoin_text0" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Member since:"></asp:Label>
                                    <asp:Label ID="lbl_Dateofjoin" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 24px" align="center">
                                    <asp:Label ID="lbl_Posts_Text" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Number of Posts:"></asp:Label>
                                    <asp:Label ID="lbl_Posts" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium" Text="Label"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                        <table align="left" style="width: 100%; height: 244px">
                            <tr>
                                <td style="width: 533px; height: 69px">
                                    <asp:Label ID="lbl_FirstName" runat="server" Font-Bold="True" Font-Names="Calibri" 
                                        ForeColor="#CC0000" Font-Size="Larger"></asp:Label>
                                    <asp:Label ID="lbl_SecondName" runat="server" Font-Bold="True" Font-Names="Calibri" 
                                        ForeColor="#CC0000" Font-Size="Larger"></asp:Label>
                                </td>
                                <td align="center" style="height: 69px">
                                    <asp:Label ID="lbl_Level" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 533px">
                                    <asp:Label ID="lbl_Country" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                    <br />
                                    <asp:Label ID="lbl_Occupation" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                    <br />
                                    <asp:Label ID="lbl_occ_dec" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                    <br />
                                    <asp:Label ID="lbl_AboutUser" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                </td>
                                <td align="center">
                                    <asp:Label ID="lbl_Points" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                &nbsp;&nbsp;
                                    <asp:Label ID="lbl_Points_text" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Points"></asp:Label>
                                    <br />
                                    <asp:Label ID="lbl_PointsToNextLevel" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                &nbsp;&nbsp;
                                    <asp:Label ID="lbl_Points_text0" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Points to next Level"></asp:Label>
                                    <br />
                                    <asp:Label ID="lbl_PointThisWeek" runat="server" Font-Names="Calibri" 
                                        Font-Size="Medium"></asp:Label>
                                &nbsp;&nbsp;
                                    <asp:Label ID="lbl_PointsThisweek_text" runat="server" Font-Names="Calibri" 
                                        Font-Size="Small" Text="Points this week" Visible="False"></asp:Label>
                                    </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 231px">
                        User Activity</td>
                    <td>
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
                            <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="actionid_FK" 
                                    DataNavigateUrlFormatString="Details.aspx?ActionID={0}" 
                                    DataTextField="actionid_FK" HeaderText="ID" 
                                    SortExpression="actionid_FK" >
                                    <ControlStyle Width="200px" />
                                    <HeaderStyle Width="200px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:HyperLinkField>
                            <asp:BoundField DataField="Points" HeaderText="Points" 
                                    SortExpression="Points" />
                            </Columns>
                            <EmptyDataTemplate>
                            No User activity. <a href="AddContent.aspx">Start now</a>
                            </EmptyDataTemplate>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                            SelectCommand="SELECT [Points], [actionid_FK] FROM [UserActivity] WHERE ([UserID_FK] = ?)">
                            <SelectParameters>
                                <asp:SessionParameter Name="UserID_FK" SessionField="Userid" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px">
                        User Scoring&nbsp;</td>
                    <td>
                        <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource2" 
                            AlternateText="No User activiity">
                            <Series>
                                <asp:Series Name="Series1" XValueMember="ActionID_FK" YValueMembers="Points">
                                </asp:Series>
                            </Series>
                            <ChartAreas>
                                <asp:ChartArea Name="ChartArea1">
                                </asp:ChartArea>
                            </ChartAreas>
                        </asp:Chart>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                            SelectCommand="SELECT [Points], [ActionID_FK] FROM [UserActivity] WHERE ([UserID_FK] = ?) ORDER BY [Points]">
                            <SelectParameters>
                                <asp:SessionParameter Name="UserID_FK" SessionField="UserID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 231px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
  
</td></tr>
    
    </form>
    
    </td>
</tr>
    
</asp:Content>
